package random.fox.p2p.ui;

import android.content.Context;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.widget.LinearLayout;

import butterknife.ButterKnife;
import butterknife.InjectView;
import de.greenrobot.event.EventBus;
import random.fox.p2p.R;
import random.fox.p2p.event.ActionBarEvent;

/**
 * 我关注的
 * Created by wq on 15/3/23.
 */
public class AttentionView extends LinearLayout{
    @InjectView(R.id.toolbar)Toolbar toolbar;

    public AttentionView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        ButterKnife.inject(this);

        toolbar.setTitle("我的关注");
        EventBus.getDefault().post(new ActionBarEvent(toolbar,-1,true));
    }
}
